﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>zhu</title>

    <!-- Sweet Alert -->
    <link href="~/Content/Version/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">



    <link href="~/Content/Version/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/Version/font-awesome/css/font-awesome.css" rel="stylesheet">

    <link href="~/Content/Version/css/animate.css" rel="stylesheet">
    <link href="~/Content/Version/css/style.css" rel="stylesheet">
    <link href="~/Content/Login/css/login.css" rel="stylesheet" />

</head>
<body>

    <div class="passwordBox animated fadeInDown">
        <div class="row">

            <div class="col-md-12">
                <form class="form-horizontal" role="form" id="editId">

                    <input type="hidden" name="Id" id="id" value="" />
                    <input type="hidden" name="TXTid" id="txtid" value="0" />

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">姓名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="Name" name="Name" placeholder="请输入用户姓名">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">性别</label>
                        <div class="col-sm-10">
                            <label>
                                <input type="radio" name="Sex0" id="Sex0" value="0" checked>男
                                <input type="radio" name="Sex1" id="Sex1" value="1">女
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">出生日期</label>
                        <div class="input-group input-medium date-picker input-daterange" data-date-format="yyyy-mm-dd">
                            <input id="BirthDay" name="BirthDay" class="form-control" type="text" value="@Html.Raw(DateTime.Now.ToString("MM-dd-yyyy"))">
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">家庭籍贯</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="NativePlace" name="NativePlace" placeholder="请输入家庭省份城市">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">现在居住地址</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="Address" name="Address" placeholder="请输入省份城市">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">手机号</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="Tel" name="Tel" placeholder="请输入11位手机号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">身份证号</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="cardId" name="cardId" placeholder="请输入18位身份证号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">登录密码</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="Password" name="Password" placeholder="请输入6六位数密码">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">邮箱</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="Email" name="Email" placeholder="请输入正确的邮箱地址">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstname" class="col-sm-2 control-label">角色</label>
                        <div class="col-sm-5">
                            <select class="form-control m-b" name="account" id="RoleId">
                                @foreach (var item in ViewBag.role)
                                {
                                    <option value="@item.Id">@item.Name</option>
                                }
                            </select>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</body>
</html>
<script src="~/Content/Version/js/jquery-3.1.1.min.js"></script>
<script src="~/Content/Version/js/popper.min.js"></script>
<script src="~/Content/Version/js/bootstrap.js"></script>
<script src="~/Content/Version/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="~/Content/Version/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

<!-- Custom and plugin javascript -->
<script src="~/Content/Version/js/inspinia.js"></script>
<script src="~/Content/Version/js/plugins/pace/pace.min.js"></script>

<!-- Sweet alert -->
<script src="~/Content/Version/js/plugins/sweetalert/sweetalert.min.js"></script>

<script>
    //提交
    function getTi() {
        $.ajax({
            url: "/Login/Ti",
            data: {
                email: $("#email").val(),
                id: $("#id").val()
            },
            success: function (res) {
                if (res == 1) {
                    swal({
                        title: "邮件！",
                        text: "已发送",
                        type: "success"
                    });
                }
                else {
                    swal("错误", "账号不正确", "error");
                }
            }
        })

    }

    function TuiC() {
        window.location.href = '/Login/Index';
    }

</script>

